<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class convert_role extends CI_Controller {

	public function index($new_role)
	{
		if($new_role == 0){
			$new_role = 'Member';
		} else if($new_role == 1) {
			$new_role = 'Moderator';
		} else if($new_role == 2) {
			$new_role = 'Administrator';
		} else {
			$new_role = 'Banned';
		}
		return $new_role;		
	}
	
}
